function checkUserIsLogin() {
	var stuIdToken = localStorage.getItem("stu_id_token");
	var loginToken = localStorage.getItem("login_token");
	if(stuIdToken == null || stuIdToken == undefined) {
		return false;
	}
	if(loginToken == null || loginToken == undefined) {
		return false;
	}
	return true;
}

function checkUserIsOnline(res) {
	if(res.resultCode == NEED_LOGIN || res.resultCode == ALERADY_OTHER_LOGIN) {
		mui.toast(res.msg, {
			duration: 'long',
			type: 'div'
		})

		localStorage.removeItem(LS_LOGIN_TOKEN);
		localStorage.removeItem(LS_STU_ID_TOKEN);
		localStorage.removeItem(LS_USER_FACE);
		localStorage.removeItem(LS_USER_NICK_NAME);
		setTimeout(function(){
			mui.openWindow({
				url: 'login.html',

			});
		},2000)	
	}
}